package com.example.demo.entity;

import java.time.LocalDateTime;

public class NewTask {
    private Long id; // 任务表主键ID
    private String bizUniqueId; // 任务全局唯一ID，用于去重
    private Long dataSourceId; // 数据源ID，关联 data_source 表
    private String rawData; // 从数据源抓取的原始数据，JSON格式
    private Integer isAssigned; // 是否已分配流程，0=未分配，1=已分配
    private LocalDateTime createdAt; // 任务创建时间
    private LocalDateTime updatedAt; // 任务更新时间
    private Integer isComplete; // 是否完成，0=未完成，1=已完成
    
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public String getBizUniqueId() {
        return bizUniqueId;
    }
    
    public void setBizUniqueId(String bizUniqueId) {
        this.bizUniqueId = bizUniqueId;
    }
    
    public Long getDataSourceId() {
        return dataSourceId;
    }
    
    public void setDataSourceId(Long dataSourceId) {
        this.dataSourceId = dataSourceId;
    }
    
    public String getRawData() {
        return rawData;
    }
    
    public void setRawData(String rawData) {
        this.rawData = rawData;
    }
    
    public Integer getIsAssigned() {
        return isAssigned;
    }
    
    public void setIsAssigned(Integer isAssigned) {
        this.isAssigned = isAssigned;
    }
    
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }
    
    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }
    
    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }
    
    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }
    
    public Integer getIsComplete() {
        return isComplete;
    }
    
    public void setIsComplete(Integer isComplete) {
        this.isComplete = isComplete;
    }
}